import 'package:flutter/material.dart';
import 'package:flutter_desktop_template/pages/home/home.dart';
import 'package:flutter_desktop_template/pages/second/test.dart';
import 'package:get/get.dart';

import '../pages/framework/framework.dart';
import '../pages/second/second.dart';

List<GetPage<dynamic>> routes=[
	GetPage(
		name: '/',
		page: ()=>const Framework(),
		transition:Transition.noTransition,
        participatesInRootNavigator: true,
        preventDuplicates: true,
        children: [
            GetPage(
                name: '/home',
                page: ()=>const HomePage(),
                transition:Transition.noTransition,
                title: "首页",
                arguments: const {"icon":Icons.home}
            ),
            GetPage(
                name: '/second',
                page: ()=>const SecondPage(),
                transition:Transition.noTransition,
                title: "其他",
                arguments: const {"icon":Icons.abc}
            ),
            GetPage(
                name: '/test',
                page: ()=>const TestPage(),
                transition:Transition.noTransition,
                title: "其他2",
                arguments: const {"icon":Icons.abc,"hide":true}
            ),
        ]
	),
    
];